<?php
//print_r($groupcontent);
$flag=0;
if(count($content) >0)
{
	$flag=1;
	
}
//print_r($content);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<link rel="stylesheet" href="<?php echo base_url();?>css/reset.css" />
<link rel="stylesheet" href="<?php echo base_url();?>css/text.css" />
<link rel="stylesheet" href="<?php echo base_url();?>css/960_24_col.css" />
 <link rel="stylesheet" href="<?php echo base_url();?>css/jquery-ui-1.8.21.custom.css" />
 <link rel="stylesheet" href="<?php echo base_url();?>css/style.css" />
 <link rel="stylesheet" href="<?php echo base_url();?>css/faary.css" type="text/css" />
 <script type="text/javascript" src="<?php echo base_url();?>js/jquery-1.7.2.min.js"></script>
 <script type="text/javascript" src="<?php echo base_url();?>js/jquery-ui-1.8.21.custom.min.js"></script>
<script type="text/javascript" src="<?php echo base_url();?>js/scripts.js"></script>
<script type="text/javascript" src="<?php echo base_url();?>js/jquery.validate.js"></script>
<script type="text/javascript" src="<?php echo base_url();?>js/ckeditor/ckeditor.js"></script>
<style>
.name{width:500px;}
</style>

</head>

<body>
	
	<div class="principal container_24">
		
		<!--logo-->
		<div class="logo grid_24">
			<div class="grid_1">&nbsp;</div>
			<div class="grid_4 logoimage"><img src="<?php echo base_url();?>img/logo.png" height="90"></div>
			<div class="logout grid_5"><a href="index.php?loginprocess/loginout"><img src="<?php echo base_url();?>img/bt_logout.jpg"/></a></div>
		</div><!-- end logo-->
		
		<!--menupricipal-->
		<div class="menuprincipal grid_24">
			<a class="yearlist " href="index.php?webctrl/web_adminmenu">Back to List </a>
		</div>
		<!-- end menupricipal-->
				
			<div class="descprincipal grid_22">
				ADD/Edit Page message
			</div>
			
			<div class="grid_24 listcontent">
				<h1>ADD/Edit Page message</h1>
				<div class="grid_22 list">
		
<?php if ($flag ==1){?>
<form method="post" action="index.php?webctrl/editwebtext" class="iform grid_18 formbus" >
<?php }else{?>
<form method="post" action="index.php?webctrl/addwebtext" class="iform grid_18 formbus" >
<?php } ?>	
<input type="hidden" name="textcode" value="<?php echo $textcode?>"/>
<ul class="">
<li class="iheader">Edite</li>
<li><label for="hotelinfo">* Info Message -En</label><textarea class="itextarea ckeditor" name="content_en" id="HotelInfo"><?php if($flag==1) echo $content[0]['content_en'] ;?></textarea></li>
<li><label for="hotelinfo">*  Info Message -Fr</label><textarea class="itextarea ckeditor"  name="content_fr" id="HotelInfo"><?php if($flag==1) echo $content[0]['content_fr'] ;?></textarea></li>
<li><label for="hotelinfo">*  Info Message -Cn</label><textarea class="itextarea ckeditor" name="content_cn" id="HotelInfo"><?php if($flag==1) echo $content[0]['content_cn'] ;?></textarea></li>
<li><label>&nbsp;</label><input type="submit" class="ibutton"  name="SendaMessage ckeditor" id="SendaMessage" value="Submit" /></li>

</ul></form>
				</div>
			</div>
		
	</div><!--end principal-->
</body>
</html>